-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: more clippy lints #598
chore: more clippy lints #598
Conversation
6ae3e71
to
a9a4b3d
Compare
Looks good to me, just two remarks:
|
a9a4b3d
to
59b0115
Compare
lgtm @xJonathanLEI what about codegen file? |
2e1d496
to
d9b7923
Compare
@tcoratger Yes the codegen file should not be modified in any case, as any codegen update will overwrite all the changes. @aniketpr01 Please make changes to xJonathanLEI/starknet-jsonrpc-codegen such that the codegen output matches exactly what this PR does to that file. |
@xJonathanLEI should i keep the codegen changes as it is in this repo and perform same changes to starknet-jsonrpc-codegen by creating a seperate PR to it? |
Yes please.
You can run the generate command and overwrite the file to this PR branch to see if you generate any diff. You should only be seeing a single line of commit hash diff. An alternative solution would be to exclude the codegen file from the lints. Not sure if that's desirable though, as some lints actually affect the API (e.g. |
@xJonathanLEI |
013a20c
to
b28806b
Compare
Have reverted codegen.rs from this(starknet-rs) repo and added another PR which will exclude existing rules to it. |
5047d61
to
6e9edef
Compare
Squashed and rebased. |
Closes #596
Add linters as referenced from reth repo with below exceptions which can be added later.
Exceptions till now:
rust.missing_docs = "allow"
rust.unreachable_pub = "allow"
type-repetition-in-bound = "allow"
Added PR to ignore linter changes affecting codegen.rs
PR: xJonathanLEI/starknet-jsonrpc-codegen#5